<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="./static/d3.v3.min.js"></script>
			
	</head>
	<body>

	</body>
	<script>
		//准备数据
		let arr=["北京","上海","广州","深圳"]
		//选择body
		let body=d3.select("body")
		
		
		body.selectAll("p").data(arr).enter()
			.append("p")
			.text((item,index)=>{
				return item;
			})
		
			
	</script>
</html>
